<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>双向绑定</title>
    <style>
        h1{
            color: aqua;
            border: 1px solid red;
        }
    </style>
</head>
<body>
    <div id="app">
        <zhangsan>
            <h1>我是插槽的内容</h1>
        </zhangsan>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <script>
        Vue.component("zhangsan",{
            template:`
                <div>
                    <strong>哈哈</strong>   
                    <slot></slot> 
                </div>
            `
        })
        var vue =new Vue({
            el:"#app",
            methods:{
                currentTime1:function(){
                    return Date.now()
                }
            },
             
        })  
    </script>
</body>
</html>